package cn.aitrox.ry.service.anno.enumtype.anno;

public enum LesionResultTypeEnum {

    MASK(1, "mask"),
    POINT(2, "点位");

    private Integer type;

    private String desc;

    LesionResultTypeEnum(Integer type, String desc) {
        this.type = type;
        this.desc = desc;
    }

    public Integer getType() {
        return type;
    }

    public String getDesc() {
        return desc;
    }


    public static boolean _isMask(Integer type) {
        return MASK.getType().equals(type);
    }

    public static LesionResultTypeEnum _getEnum(Integer type) {
        for (LesionResultTypeEnum typeEnum : LesionResultTypeEnum.values()) {
            if (typeEnum.getType().equals(type)) {
                return typeEnum;
            }
        }
        return null;
    }

}
